<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" %>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>

<%
String path = request.getContextPath();
%>
<%
	String d = request.getParameter("d");
	if(d!=null && d.equals("1"))
	{
		response.setHeader("Content-disposition","attachment; filename=daochu.xls");
	}
//获取并判断浏览器信息
	String Agent = request.getHeader("User-Agent");
	if(Agent.contains("Chrome"))
	{
		System.out.println("Chrome");
		request.setAttribute("brtype", "cbr");
	}
	else
	{
		System.out.println("!Chrome");
		request.setAttribute("brtype", "obr");
	}
	System.out.println(Agent);
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />
        
        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        
        <script type="text/javascript" src="<%=path %>/js/popup.js"></script>
		<script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
		<script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
	    <script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
	    <script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
		<script type="text/javascript" src="<%=path %>/js/riqi.js"></script>

        <script language="javascript">
			function check()
			{
                if(document.formAdd.leibie.value=="")
                {
                    alert("please input:类别");
                    return false;
                }

                if(document.formAdd.addtime.value=="")
                {
                    alert("please input:时间");
                    return false;
                }


				/*if(document.formAdd.biaoti.value=="")
                {
                    alert("请输入标题：");
                    return false;
                }*/

				document.formAdd.submit();
			}
			function up()
			{
				var pop=new Popup({ contentType:1,isReloadOnClose:false,width:400,height:200});
				pop.setContent("contentUrl","<%=path %>/upload/upload.jsp");
				pop.setContent("title","文件上传");
				pop.build();
				pop.show();
			}
			function upx(id)
			{
				//window.open("<%=path %>/upload/upload.jsp?id="+id, "_self");
				var pop=new Popup({ contentType:1,isReloadOnClose:false,width:400,height:200});
				pop.setContent("contentUrl","<%=path %>/upload/upload.jsp?id="+id);
				pop.setContent("title","文件上传");
				pop.build();
				pop.show();
			}
			function typechange()
			{
				//document.formAdd.typename.value=document.formAdd.type.text;
				var obj = document.getElementById("type"); //定位id
				//document.getElementById(id)
				var index = obj.selectedIndex; // 选中索引				
				//var text = obj.options[index].text; // 选中文本     输出张三等汉字信息				
				//var value = obj.options[index].value; // 选中值        输出zhangsan等英文信息	
				//obj.options[index].text = obj.options[index].value;
				document.formAdd.typename.value=obj.options[index].text;
			}
			function init()
			{
				
				/*typechange();*/

				/*leibieSelect();*/
			}


			/*function leibieSelect()
            {
                loginService.leibieSelect(leibiecallBack);
            }
            function leibiecallBack(data)
            {
                DWRUtil.addOptions("leibieid",data,"id","mingcheng");
            }*/
        </script>
	</head>

	<body onload="init()" leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
			<form action="<%=path %>/dxSet.action" name="formAdd" method="post">
				     <table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
						<tr bgcolor="#EEF4EA">
					        <td colspan="3" background="<%=path %>/img/wbg.gif" class='title'><span>&nbsp;信息介绍详情</span></td>
					    </tr>
					    <%--<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
						    <td width="10%" bgcolor="#FFFFFF" align="right">
						         视频分类选择：
						    </td>
						    <td width="90%" bgcolor="#FFFFFF" align="left">
						        <select name="leibieid" id="leibieid" style="width: 280px;">
						        <option value="${requestScope.dx.database.tableMap.table.colunmMap.colunm.fatherTableNameLower.database.tableMap.table.colunmMap.colunm.fatherTableNameidColunmNameLower }">${requestScope.dx.database.tableMap.table.colunmMap.colunm.fatherTableNameLower.database.tableMap.table.colunmMap.colunm.fatherTableNamesecondColunmNameLower }</option>
								</select>
						    </td>
						</tr>--%>
					    <tr style="" align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
							<td width="10%" bgcolor="#FFFFFF" align="right">
								类别:
						    </td>

							<td width="90%" bgcolor="#FFFFFF" align="left">
								${requestScope.dx.leibie }
							</td>

						</tr>
					    <tr style="" align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
							<td width="10%" bgcolor="#FFFFFF" align="right">
								内容:
						    </td>

							<td width="90%" bgcolor="#FFFFFF" align="left">
								${requestScope.dx.content }
							</td>

						</tr>
					    <tr style="" align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
							<td width="10%" bgcolor="#FFFFFF" align="right">
								时间:
						    </td>

						    <td width="90%" bgcolor="#FFFFFF" align="left">
								${requestScope.dx.addtime }
							</td>

						</tr>


						<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
						    <td width="10" bgcolor="#FFFFFF" align="right">
						        &nbsp;
						    </td>
						    <td width="90%" bgcolor="#FFFFFF" align="left">
						    <input type="hidden" name="id" value="${requestScope.dx.id }"/>
						       <%--<input type="button" value="提交" onclick="check()"/>&nbsp;--%>
								<input type="button" value="打印"  onClick="javascript:window.print()" />
								<input type="button" value="返回"  onClick="javascript:history.back()" />

						    </td>
						</tr>
					 </table>
			</form>
   </body>
</html>
